import React from 'react'
import {Tooltip, Icon} from 'antd'
import sectionStatusColor from '../../constant/section-status-color'
import '../../less/index.less'
import { FormattedMessage } from 'react-intl'

export default ({title, count}) => {
  return <Tooltip placement='top' title={<FormattedMessage id={title} />}>
    <span className='margin-l-2'><Icon type='star' theme='filled' style={{color: sectionStatusColor[title]}} /> {count}</span>
  </Tooltip>
}
